3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate simple polygons. See "Simple Polygons" for the definition of a simple polygon.
You can use the Q3Polygon_New function to create a new simple polygon.
TQ3GeometryObject Q3Polygon_New (
const TQ3PolygonData *polygonData);
You can use the Q3Polygon_Submit function to submit an immediate simple polygon for drawing, picking, bounding, or writing.
TQ3Status Q3Polygon_Submit (
const TQ3PolygonData *polygonData,
TQ3ViewObject view);
The Q3Polygon_Submit function submits for drawing, picking, bounding, or writing the immediate simple polygon whose shape and attribute set are specified by the polygonData parameter. The simple polygon is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3Polygon_GetData function to get the data that defines a simple polygon and its attributes.
TQ3Status Q3Polygon_GetData (
TQ3GeometryObject polygon,
TQ3PolygonData *polygonData);
You can use the Q3Polygon_SetData function to set the data that defines a simple polygon and its attributes.
TQ3Status Q3Polygon_SetData (
TQ3GeometryObject polygon,
const TQ3PolygonData *polygonData);
You can use the Q3Polygon_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3Polygon_GetData .
TQ3Status Q3Polygon_EmptyData (TQ3PolygonData *polygonData);
You can use the Q3Polygon_GetVertexPosition function to get the position of a vertex of a simple polygon.
TQ3Status Q3Polygon_GetVertexPosition (
TQ3GeometryObject polygon,
unsigned long index,
TQ3Point3D *point);
You can use the Q3Polygon_SetVertexPosition function to set the position of a vertex of a simple polygon.
TQ3Status Q3Polygon_SetVertexPosition (
TQ3GeometryObject polygon,
unsigned long index,
const TQ3Point3D *point);
You can use the Q3Polygon_GetVertexAttributeSet function to get the attribute set of a vertex of a simple polygon.
TQ3Status Q3Polygon_GetVertexAttributeSet (
TQ3GeometryObject polygon,
unsigned long index,
TQ3AttributeSet *attributeSet);
The Q3Polygon_GetVertexAttributeSet function returns, in the attributeSet parameter, the set of attributes for the vertex having the index specified by the index parameter in the vertices array of the simple polygon specified by the polygon parameter. The reference count of the set is incremented.
You can use the Q3Polygon_SetVertexAttributeSet function to set the attribute set of a vertex of a simple polygon.
TQ3Status Q3Polygon_SetVertexAttributeSet (
TQ3GeometryObject polygon,
unsigned long index,
TQ3AttributeSet attributeSet);
Previous | QD3D Book | Overview | Chapter Contents | Next |